package cn.iocoder.yudao.module.crossborder.platform.enums;

import cn.iocoder.yudao.framework.common.exception.ErrorCode;

/**
 * 跨境电商平台对接模块 - 错误码枚举类
 *
 * crossborder-platform 系统，使用 1-100-000-000 段
 */
public interface ErrorCodeConstants {

    // ========== 平台配置 1-100-001-000 ==========
    ErrorCode PLATFORM_CONFIG_NOT_EXISTS = new ErrorCode(1_100_001_000, "平台配置不存在");
    ErrorCode PLATFORM_CONFIG_DISABLED = new ErrorCode(1_100_001_001, "平台配置已禁用");
    ErrorCode PLATFORM_API_KEY_INVALID = new ErrorCode(1_100_001_002, "平台API密钥无效");
    ErrorCode PLATFORM_CONNECTION_FAILED = new ErrorCode(1_100_001_003, "平台连接失败");

    // ========== 平台同步 1-100-002-000 ==========
    ErrorCode PLATFORM_SYNC_FAILED = new ErrorCode(1_100_002_000, "平台同步失败");
    ErrorCode PLATFORM_SYNC_RATE_LIMIT = new ErrorCode(1_100_002_001, "平台同步频率限制");
    ErrorCode PLATFORM_SYNC_DATA_INVALID = new ErrorCode(1_100_002_002, "平台同步数据无效");

    // ========== 平台订单 1-100-003-000 ==========
    ErrorCode PLATFORM_ORDER_NOT_EXISTS = new ErrorCode(1_100_003_000, "平台订单不存在");
    ErrorCode PLATFORM_ORDER_STATUS_INVALID = new ErrorCode(1_100_003_001, "平台订单状态无效");
    ErrorCode PLATFORM_ORDER_SYNC_FAILED = new ErrorCode(1_100_003_002, "平台订单同步失败");

    // ========== 平台商品 1-100-004-000 ==========
    ErrorCode PLATFORM_PRODUCT_NOT_EXISTS = new ErrorCode(1_100_004_000, "平台商品不存在");
    ErrorCode PLATFORM_PRODUCT_SYNC_FAILED = new ErrorCode(1_100_004_001, "平台商品同步失败");
    ErrorCode PLATFORM_PRODUCT_MAPPING_INVALID = new ErrorCode(1_100_004_002, "平台商品映射无效");

}
